import request from '@/utils/request'

// 海关编码列表
export function queryCustomsList(data) {
  return request({
    url: '/v1/base/base-customs/list',
    method: 'POST',
    data
  })
}

// 创建海关编码
export function createCustoms(data) {
  return request({
    url: '/v1/base/base-customs/create',
    method: 'POST',
    data
  })
}

// 修改海关编码
export function updateCustoms(data) {
  return request({
    url: '/v1/base/base-customs/update',
    method: 'POST',
    data
  })
}

// 海关编码详情
export function getCustomsDetail(data) {
  return request({
    url: '/v1/base/base-customs/detail',
    method: 'POST',
    data
  })
}

// 删除海关编码
export function deleteCustoms(data) {
  return request({
    url: '/v1/base/base-customs/delete',
    method: 'POST',
    data
  })
}

// 导入海关编码
export function importCustoms(data) {
  return request({
    url: '/v1/base/base-customs/import',
    method: 'POST',
    data
  })
}

// 申报要素项-列表
export function queryDeclareElementList(data) {
  return request({
    url: '/v1/base/base-customs/declare-element-list',
    method: 'POST',
    data
  })
}

// 申报要素项-创建
export function createDeclareElement(data) {
  return request({
    url: '/v1/base/base-customs/create-declare-element',
    method: 'POST',
    data
  })
}

// 申报要素项-编辑
export function editDeclareElement(data) {
  return request({
    url: '/v1/base/base-customs/edit-declare-element',
    method: 'POST',
    data
  })
}
// 申报要素项-删除
export function deleteDeclareElement(data) {
  return request({
    url: '/v1/base/base-customs/del-declare-element',
    method: 'POST',
    data
  })
}


